Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/Renesas Electronics/R7FA4M1AB/SYSTEM/SYOCDCR#0x0
DBGEN=0
System Control OCD Control Register
These bits are read as 0000000. The write value should be 0000000.
Debugger Enable bit
0 (0): On-chip debugger is disabled
1 (1): On-chip debugger is enabled
https://github.com/cmsis-svd/cmsis-svd-data